home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / gsiparm2.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.9 KB  |  63 lines

  1. /* Copyright (C) 1997, 1998 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19. /*$Id: gsiparm2.h,v 1.2 2000/09/19 19:00:29 lpd Exp $ */
  20. /* ImageType 2 image parameter definition */
  21.  
  22. #ifndef gsiparm2_INCLUDED
  23. #  define gsiparm2_INCLUDED
  24.  
  25. #include "gsiparam.h"
  26.  
  27. /* Opaque type for a path */
  28. #ifndef gx_path_DEFINED
  29. #  define gx_path_DEFINED
  30. typedef struct gx_path_s gx_path;
  31. #endif
  32.  
  33. /*
  34.  * See Section 7.1 of the Adobe PostScript Version 3010 Supplement
  35.  * for a definition of ImageType 2 images.
  36.  */
  37.  
  38. typedef struct gs_image2_s {
  39.     gs_image_common;
  40.     gs_state *DataSource;
  41.     float XOrigin, YOrigin;
  42.     float Width, Height;
  43.     /*
  44.      * If UnpaintedPath is not 0, any unpainted path will be appended to it.
  45.      */
  46.     gx_path *UnpaintedPath;
  47.     bool PixelCopy;
  48. } gs_image2_t;
  49. #define private_st_gs_image2()    /* in gximage2.c */\
  50.   extern_st(st_gs_image_common);\
  51.   gs_private_st_suffix_add2(st_gs_image2, gs_image2_t, "gs_image2_t",\
  52.     image2_enum_ptrs, image2_reloc_ptrs, st_gs_image_common,\
  53.     DataSource, UnpaintedPath)
  54.  
  55. /*
  56.  * Initialize an ImageType 2 image.  Defaults:
  57.  *      UnpaintedPath = 0
  58.  *      PixelCopy = false
  59.  */
  60. void gs_image2_t_init(P1(gs_image2_t * pim));
  61.  
  62. #endif /* gsiparm2_INCLUDED */
  63.